package com.mm.learn.enume;

import com.mm.learn.designpatterns.strategy.Center;
import com.mm.learn.designpatterns.strategy.First;
import com.mm.learn.designpatterns.strategy.Fstrategy;
import com.mm.learn.login.LoginService;
import com.mm.learn.login.PasswordServiceImpl;
import com.mm.learn.login.SmsServiceImpl;
import lombok.Getter;

/**
 * @author wdx
 * @date 2021年09月23日 9:19
 */
@Getter
public enum LoginEnume {

   /* PASSWORD(1, new PasswordServiceImpl(), "账号密码登陆"),
    SMS(2, new SmsServiceImpl(), "短信验证码登陆");

    public static LoginEnume valueOf(int id) {
        for (LoginEnume loginEnume : LoginEnume.values()) {
            if (loginEnume.getId() == id) {
                return loginEnume;
            }
        }
        return LoginEnume.PASSWORD;
    }

    LoginEnume(int id, LoginService serviceName, String desc) {
        this.id = id;
        this.serviceName = serviceName;
        this.desc = desc;
    }

    private int id;
    private LoginService serviceName;
    private String desc;*/
}
